import { rcp } from '@kit.RemoteCommunicationKit';
import { BusinessError } from '@kit.BasicServicesKit';


const session = rcp.createSession();
session.get("http://example.com/get").then((response) => {
  console.info(`Succeeded in getting the response ${response}`);
}).catch((err: BusinessError) => {
  console.error(`err code is ${err.code}, err message is ${JSON.stringify(err)}`);
});